Autogenerated HTML docs for v1.6.5.2-140-g5f809 
diff --git a/git-check-ref-format.txt b/git-check-ref-format.txt index e9b3b40..0aeef24 100644 --- a/git-check-ref-format.txt +++ b/git-check-ref-format.txt 
@@ -9,6 +9,7 @@  --------  [verse]  'git check-ref-format' <refname> +'git check-ref-format' --print <refname>  'git check-ref-format' --branch <branchname-shorthand>    DESCRIPTION @@ -63,19 +64,31 @@    . at-open-brace `@{` is used as a notation to access a reflog entry.   +With the `--print` option, if 'refname' is acceptable, it prints the +canonicalized name of a hypothetical reference with that name. That is, +it prints 'refname' with any extra `/` characters removed. +  With the `--branch` option, it expands the ``previous branch syntax''  `@{-n}`. For example, `@{-1}` is a way to refer the last branch you  were on. This option should be used by porcelains to accept this  syntax anywhere a branch name is expected, so they can act as if you  typed the branch name.   -EXAMPLE -------- +EXAMPLES +--------   -git check-ref-format --branch @{-1}:: +* Print the name of the previous branch: ++ +------------ +$ git check-ref-format --branch @{-1} +------------   -Print the name of the previous branch. - +* Determine the reference name to use for a new branch: ++ +------------ +$ ref=$(git check-ref-format --print "refs/heads/$newbranch") || +die "we do not like '$newbranch' as a branch name." +------------    GIT  ---